package com.ibm.commerce.url.tasks.accelerator;

/**
 * Info 1
 * Info 2
 * Info 3
 * Info 4
 * Info 5
 * Info 6
 */

import com.ibm.commerce.url.harness.*;
import com.ibm.commerce.url.util.Log;
import com.ibm.commerce.url.exception.*;
import com.ibm.wc.test.exception.DatablockMissingException;

import java.util.LinkedHashMap;
import java.util.Map;

public class AcceleratorLogoff extends URLTestTask {
	private static AcceleratorLogoff instance = new AcceleratorLogoff();
	private AcceleratorLogoff(){}
	
	public static void execute() throws TaskFailException, DatablockMissingException {
		instance.runTask();
	}
	public static void execute(int counterIndex) throws TaskFailException, DatablockMissingException {
		instance.runTask(counterIndex);
	}
	
	protected void executeTask() throws TaskFailException {
		acceleratorLogoffStep1();
	}

	private static Map<String, String> acceleratorLogoffStep1_FORM = new LinkedHashMap<String, String>();
	static{
		acceleratorLogoffStep1_FORM.put("URL","/wcs/tools/common/blank.html");
		acceleratorLogoffStep1_FORM.put("storeId","0");
	}
	private void acceleratorLogoffStep1() throws TaskFailException {
		Log.finest("Task["+this.getClass().getSimpleName()+"]: Entering acceleratorLogoffStep1");
		
		// Add dynamically changed URL parameters begin
		// Add dynamically changed URL parameters end
		
		// Add global URL parameters begin
		// Add global URL parameters end
		
		// Main body start
		WebHit("https://standardhost/webapp/wcs/tools/servlet/Logoff", WEB_FORM_GET, acceleratorLogoffStep1_FORM);
		GUIValidate("link rel=\"stylesheet\" ");
		// Main body end
		
		// Save global URL parameters begin
		// Save global URL parameters end
		
		Log.finest("Task["+this.getClass().getSimpleName()+"]: Exiting acceleratorLogoffStep1");		
	}
}
